package com.ai.model.param;

import com.ai.common.vaild.AddGroup;
import com.ai.common.vaild.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class SysRequestPathParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @NotBlank(message = "修改时记录id不能为空",groups = {UpdateGroup.class})
    private String id;

    @ApiModelProperty("请求路径")
    @NotBlank(message = "修改时请求路径不能为空",groups = {UpdateGroup.class})
    @NotBlank(message = "新增时请求路径不能为空",groups = {AddGroup.class})
    private String url;

    @ApiModelProperty("路径描述")
    private String description;


}
